/**
 * 
 */
package com.dhcc.DRGsHosp.core.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.openkoala.koala.commons.domain.KoalaLegacyEntity;


/**
 * @title :DICTIONARY.java
 * @description :DICTIONARY
 * @author chl
 * @date :2016年11月3日
 * @version :1.0
 * @copyright :DHCC 2013-2014
 *
 */
@Entity
@Table(name = "MR_DICTIONARY", schema = "DRGs")
public class Dictionary extends KoalaLegacyEntity {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 7967198751648737644L;
	// 主键
	@Id
	// 字典编码
	@Column(name = "DIC_CODE")
	private String dicCode ;
	// 字典描述
	@Column(name = "DIC_DESC")
	private String dicDesc ; 
	
	
	/**
	 * 构造函数
	 */
	public Dictionary() {
		super();
	}
	
	

	/**
	 * @param dicCode
	 * @param dicDesc
	 */
	public Dictionary(String dicCode, String dicDesc) {
		super();
		this.dicCode = dicCode;
		this.dicDesc = dicDesc;
	}



	/**
	 * @return the dicCode
	 */
	public String getDicCode() {
		return dicCode;
	}

	/**
	 * @param dicCode the dicCode to set
	 */
	public void setDicCode(String dicCode) {
		if(dicCode == null ){
			return ;
		}
		this.dicCode = dicCode;
	}

	/**
	 * @return the dicDesc
	 */
	public String getDicDesc() {
		return dicDesc;
	}

	/**
	 * @param dicDesc the dicDesc to set
	 */
	public void setDicDesc(String dicDesc) {
		this.dicDesc = dicDesc;
	}


	/* (non-Javadoc)
	 * @see org.dayatang.domain.Entity#getId()
	 */
	@Override
	public String  getId() {
		return this.dicCode;
	}

	/* (non-Javadoc)
	 * @see org.openkoala.koala.commons.domain.KoalaBaseEntity#businessKeys()
	 */
	@Override
	public String[] businessKeys() {
		return null;
	}

}
